<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02_子项目排列方式</title>
    <style>
        .container{
            background-color: #ffd400;
            display: flex;/*弹性布局*/

        }
        .item,.eg{
            background-color: red;
            width: 500px;
            height: 100px;
            font-size: 45px;
            border: 3px solid black;
        }
        .eg{
            font-size: 20px;
            background-color: limegreen;
        }
        /*.c1{*/
        /*    flex-grow: 1;*/
        /*}*/
        /*.c2{*/
        /*    flex-grow: 2;*/
        /*}*/
        /*.c3{*/
        /*    flex-grow: 3;*/
        /*}*/
        .c1{
            flex-shrink: 0;
        }
        .c2{
            flex-shrink: 1;
        }
        .c3{
            flex-shrink: 2;
        }
    </style>
</head>
<body>
<div class="eg"> 参照物</div>
<div class="container">
    <div class="item c1">c1</div>
    <div class="item c2">c2</div>
    <div class="item c3">c3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
</div>
</body>
</html>